const moduleFile = require.context("@/directive/module/", false, /.ts$/);
export default function InitGlobalDirective(app: any) {
  const moduleKey = moduleFile.keys();
  for (let i = 0; i < moduleKey.length; i++) {
    const targetKey = moduleKey[i];
    const targetRow = moduleFile(targetKey).default;
    app.directive(targetRow.name, targetRow.install);
  }
}
